<!doctype html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>外卖设置_店铺管理|速定客_预订美好生活！</title>
<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible">
<meta content="外卖信息,中山外卖送餐,网上订餐,-,,速定客,速订客，预订美好生活！外卖订餐美食网" name="keywords">
<meta content="速订客—外卖网，订餐，美食。最好的网上订餐平台，为您提供最新最全的24小时外卖送餐电话、外卖菜单等外卖订餐详细信息。包括肯德基网上订餐电话，麦当劳网上订餐电话。" name="description">
<link rel="stylesheet" type="text/css" href="http://img2.sudingke.com/css/base.css">
<link rel="stylesheet" type="text/css" href="http://img.sudingke.net/css/member/global.css">
<link rel="stylesheet" type="text/css" href="http://img.sudingke.net/css/member/member.css">
<link href="http://img2.sudingke.com/favicon.ico" type="image/x-icon" rel="icon" />
<link href="http://img2.sudingke.com/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<body>
<!-- header start -->
<?php include $this->tpl('c_header'); ?>
<!-- header close -->

<div class="clearfix" id="bd">
  <div id="yao-main">
    <div class="yao-b">
      <?php include $this->tpl('c_news'); ?>
      <div class="mod mod-title" id="ucInfo">
        <form action="?m=biz&c=delivery&a=save" method="post" id="aform" autocomplete="off">
          <div class="hd">
            <h2>外卖设置</h2>
          </div>
          <div class="bd">
            <div class="info-read">外卖信息设置，请准确填写</div>
            <table cellspacing="0" cellpadding="0" border="0" class="table-two">
              <tbody>
                <tr>
                  <th><span class="required">*</span> 送餐电话：</th>
                  <td><input type="text" data-rules="telphone" class="input-s" id="telphone0" name="telphone[0]" value="<?=h($data['telphone'][0]);?>" />
                    <span class="v-tips">请至少填写一部联系电话</span></td>
                </tr>
                <tr>
                  <th></th>
                  <td><input type="text" data-rules="telphone" class="input-s" id="telphone1" name="telphone[1]" value="<?=h($data['telphone'][1]);?>" /></td>
                </tr>
                <tr>
                  <th></th>
                  <td><input type="text" data-rules="telphone" class="input-s" id="telphone2" name="telphone[2]" value="<?=h($data['telphone'][2]);?>" /></td>
                </tr>
                <tr>
                  <th><span class="required">*</span> 送餐时间：</th>
                  <td><input type="text" class="input-m" id="delivery_time" required name="delivery_time" value="<?=h($data['delivery_time']);?>" />
                  <span class="v-tips">为确保及时送餐，请详细说明</span></td>
                </tr>
                <tr>
                  <th><span class="required">*</span> 配送说明：</th>
                  <td><textarea minlength="10" maxlength="200" required class="textarea-m" name="delivery_desc" id="delivery_desc"><?=h($data['delivery_desc']);?></textarea>
                    <span class="v-tips">配送详细说明，如起送份数，配送区域，时间等</span></td>
                </tr>
                 <tr>
                  <th>起送金额：</th>
                  <td><input type="text" class="input-s" id="min_charge" name="min_charge" value="<?=i($data['min_charge']);?>" />
                    元 <span class="v-tips"></span></td>
                </tr>
                <tr>
                  <th>起送份数：</th>
                  <td><input type="text" class="input-s" id="min_order" name="min_order" value="<?=i($data['min_order']);?>" />
                    份 <span class="v-tips"></span></td>
                </tr>
                <tr class="table-ft">
                  <th>&nbsp;</th>
                  <td><div class="ucinfo-row"> <span class="btni04 submit"> <span>
                      <input type="hidden" name="submitform" value="yes">
                      <input type="submit" class="js-log" hidefocus="true" value="保 存">
                      </span> </span>
                    </div></td>
                </tr>
              </tbody>
            </table>
          </div>
        </form>
        <div>&nbsp;</div>
      </div>
    </div>
  </div>
  <?php include $this->tpl('c_menunav'); ?>
</div>

<!-- footer start -->
<?php include $this->tpl('c_footer'); ?>
<!-- footer close -->

<script src="http://autocar.com/statics/js/jquery.js" language="JavaScript"></script>
<script src="http://autocar.com/statics/js/supe.js" language="JavaScript"></script>
<script type="text/javascript">
var telphoneRule = {groupRequired:[1, "#telphone0,#telphone1,#telphone2"], telphone:true};
var telphoneMsg  = {groupRequired:'请输入至少一部送餐电话', telphone:'电话号码格式错误'};

$(function(){
  Supe.use('validate', function(){
    $("#aform").validate({
        errorClass:'v-error',
        validClass:'v-valid',
        errorElement: 'span',
        groups:{
            'tel': "telphone[0] telphone[1] telphone[2]"
        },
        errorPlacement:function(label, element){
            if(element.parent().find('.v-tips')){
                element.parent().find('.v-tips').remove();
            }
            if(element.attr('name').match(/telphone\[(0|1|2)\]/i)){
                $('#telphone0').parent().append(label);
            }else{
                element.parent().append(label);
            }
        },
        success: function(label, element) {
            // set &nbsp; as text for IE
            label.html("&nbsp;").addClass("v-valid");
        },
        rules:{
            'telphone[0]' : telphoneRule,
            'telphone[1]' : telphoneRule,
            'telphone[2]' : telphoneRule
        },
        messages:{
            'telphone[0]' : telphoneMsg,
            'telphone[1]' : telphoneMsg,
            'telphone[2]' : telphoneMsg
        }
    });
  });
});
</script>
</body>
</html>
